import { createApp } from 'vue'
import App from './App.vue'
import { store, key } from "./store"; // 状态管理
import router from "./router"; // 路由 ++
import Antd from "ant-design-vue";
import "ant-design-vue/dist/antd.css";
import * as Icons from "@ant-design/icons-vue";
const icons: any = Icons;

const app = createApp(App);

app.use(store,key); // 引入状态管理
app.use(router); // 引入路由
app.use(Antd);
for (const i in icons) {
  app.component(i, icons[i]);
}

app.mount("#app");
